//
//  RTHomeViewController.m
//  WeiboSina
//
//  Created by Brisinga on 16/3/4.
//  Copyright © 2016年 Root. All rights reserved.
//

#import "RTHomeViewController.h"

@interface RTHomeViewController ()

@end

@implementation RTHomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    if (!islogin) {
        
        [self.visitorView setVisitorViewWithImageName:nil message:nil];
        
        return;
    }
    
    // 初始化
    [self setupUI];
}


#pragma mark - 初始化
- (void)setupUI {
    
    // 添加BarButtonItem
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem buttonItemWithImageName:@"navigationbar_friendsearch" title:nil addTarget:self action:@selector(searchFriend)];
    
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem buttonItemWithImageName:@"navigationbar_pop" title:nil addTarget:self action:@selector(popAction)];
}


#pragma mark - friendsearch
- (void)searchFriend {
    
    NSLog(@"friendsearch");

}


#pragma mark - pop
- (void)popAction {
    
    NSLog(@"pop");
}


@end
